/**
 * Copyright (C), 2020-2020, 人生无限公司
 * FileName: Teacher
 * Description:老师类Teacher
 * <p>
 * * 属性：姓名name，年龄age，讲课内容content
 * * 成员方法：吃饭eat方法，讲课teach方法
 *
 * @create: 2020/7/15 13:49
 * @author Reanon
 * @version JDK 1.8.0_251
 */
package cn.reanon.day05.homework.test6;

public class Teacher {
    private String name;
    private String age;
    private String content;

    public Teacher() {
    }

    public Teacher(String name, String age, String content) {
        this.name = name;
        this.age = age;
        this.content = content;
    }

    public void eat() {
        System.out.println("年龄" + age + "的" + name + "正在吃饭……");
    }

    public void teach() {
        System.out.println("年龄" + age + "的" + name + "正在非常亢奋地讲着" + content + "的知识。");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}
